#include "Party.h"


/*
 ::Move will move the party x, and y
 relative to the current locations
 */
void Party::Move(int x,int y)
{
    // Move the unit, but keep the values greater than zero.
    _x = ( _x-x>=0 ? x+=_x : x=0 );
    _y = ( _y-y>=0 ? y+=_y : y=0 );
}

/*
 Set location will set the x and y
 location of the party.
 */
void Party::SetLocation(int x,int y)
{
    // Keep the values greater than zero.
    _x = ( x>=0 ? _x=x : _x=0 );
    _y = ( y>=0 ? _y=y : _y=0 );
}
